//
//  VOHFirstViewController.m
//  VoiceOfHeart
//
//  Created by 吉龙 on 16/8/12.
//  Copyright © 2016年 吉龙. All rights reserved.
//

#import "VOHFirstViewController.h"
#import "VOHFirtView.h"
#import "VOHButton.h"
#import "VOHUserViewController.h"
#import "VOHMVViewController.h"
#import "VOHMusicViewController.h"
#import "VOHRadioController.h"
@interface VOHFirstViewController ()
@property(nonatomic, strong)VOHFirtView *fv;
@end

@implementation VOHFirstViewController

-(void)loadView{
    self.fv = [[VOHFirtView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.view = self.fv;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    //主要按钮点击事件
    [self addButtonAction];
    
    }


-(void)addButtonAction{
    
   __weak typeof(self)weakSelf = self;
    self.fv.mainButton.block = ^(VOHButton *sender){
        
    };
    
    self.fv.MusicButton.block = ^(VOHButton *sender){
        UINavigationController *musicNaCtr = [[UINavigationController alloc] initWithRootViewController:[[VOHMusicViewController alloc] init]];
        [weakSelf presentViewController:musicNaCtr animated:YES completion:nil];
        
    };
    self.fv.RadioButton.block = ^(VOHButton *sender){
        UINavigationController *radioNavCtr = [[UINavigationController alloc] initWithRootViewController:[[VOHRadioController alloc] init]];
        [weakSelf presentViewController:radioNavCtr animated:YES completion:nil];
    };
    self.fv.MVButton.block = ^(VOHButton *sender){
        UINavigationController *MVNavCtr = [[UINavigationController alloc] initWithRootViewController:[[VOHRadioController alloc] init]];
        [weakSelf presentViewController:MVNavCtr animated:YES completion:nil];
    };
    self.fv.UserButton.block = ^(VOHButton *sender){
        UINavigationController *UserNavCtr = [[UINavigationController alloc] initWithRootViewController:[[VOHUserViewController alloc] init]];
        [weakSelf presentViewController:UserNavCtr animated:YES completion:nil];
    };
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
